package tests;

import util.DataFile;
import junit.framework.TestCase;

public class TestDataFile extends TestCase {
	
	public void testSetAndGetTitles() {
		DataFile df = new DataFile();
		String titles[] = {"A", "B", "C", "D"};
		df.setTitles(titles);
		assertEquals(df.getTitles(), titles);
	}

	public void testSetAndGetData() {
		DataFile df = new DataFile();
		String data[][] = {{"1", "2", "3", "4"}, {"5", "6", "7", "8"}, {"9", "10", "11", "12"}, {"13", "14", "15", "16"}};
		df.setData(data);
		assertEquals(df.getData(), data);
	}
}
